package com.example.qihuibao.dao

import androidx.room.*

@Dao
interface OfflineRecordDao {
//    @Query("SELECT * FROM offline_record WHERE out_face_id IN (:outFaceId)")
//    fun query(outFaceId: String): User?

    @Insert
    fun save(offlineRecord: OfflineRecord) : Long

    @Insert
    fun saveList(users: List<OfflineRecord>) : List<Long>?

    @Query("SELECT * FROM offline_record")
    fun queryAll(): List<OfflineRecord>?

    @Delete
    fun delete(offlineRecord: OfflineRecord)

    @Delete
    fun delete(offlineRecords: List<OfflineRecord>)

    @Query("DELETE FROM offline_record")
    fun deleteAll()
}